﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VideoAE.ascx.cs" Inherits="AmdinVideo" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1"><b>Thêm sửa video</b></a></li>
    </ul>
    <div id="tabs-1">
        <a href='/Admin/Module/Video/VideoList.aspx'>
            <div style="text-align: right">
                <input type="button" class="ui-widget-content ui-corner-all textfield cursor" value="Danh sách video" />
        </a>
    </div>
    <table class="gridadd">
        <tr>
            <td>
                Tiêu dề
            </td>
            <td>
                <asp:TextBox ID="txtName" runat="server" CssClass="ui-widget-content ui-corner-all textfield"
                    Width="570px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    ControlToValidate="txtName"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Chi tiết
            </td>
            <td>
                <FCKeditorV2:FCKeditor ID="txtDescription" runat="server" ToolbarSet="MyBasic" Width="570px"
                    Height="200px" EditorAreaCSS="ui-widget-content ui-corner-all textfield">
                </FCKeditorV2:FCKeditor>
            </td>
        </tr>
        <tr>
            <td>
                Loại video
            </td>
            <td>
                <asp:DropDownList ID="ddlCategoryVideo" runat="server" CssClass="ui-widget-content ui-corner-all textfield"
                    AppendDataBoundItems="true">
                    <asp:ListItem Text="***** Loại video*****" Value="" Selected="True"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    ControlToValidate="ddlCategoryVideo" InitialValue=""></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Video Type Code
            </td>
            <td>
                <asp:DropDownList ID="ddlVideoTypeCode" runat="server" CssClass="ui-widget-content ui-corner-all textfield"
                    AppendDataBoundItems="true">
                    <asp:ListItem Text="***** Video Type Code*****" Value="" Selected="True"></asp:ListItem>
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                    ControlToValidate="ddlVideoTypeCode" InitialValue=""></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Trạng thái
            </td>
            <td>
                <asp:CheckBox ID="cbIsVisible" runat="server" Checked="true" />
            </td>
        </tr>
        <tr>
            <td>
                Tin nổi bật
            </td>
            <td>
                <asp:CheckBox ID="cbHot" runat="server" Checked="true" />
            </td>
        </tr>
        <tr>
            <td>
                Hình ảnh:
            </td>
            <td valign="top">
                <asp:FileUpload ID="FileUpload1" runat="server" CssClass="ui-widget-content ui-corner-all textfield" />&nbsp;&nbsp;&nbsp;<asp:Image
                    ID="Image1" runat="server" Width="50px" Height="50px" CssClass="ui-widget-content ui-corner-all textfield" />
            </td>
        </tr>
        <tr>
            <td>
                Video:
            </td>
            <td valign="top">
                <asp:FileUpload ID="FileUploadVideo" runat="server" CssClass="ui-widget-content ui-corner-all textfield" />
                <br />
                <asp:Literal ID="LiteralShowVideo" runat="server"></asp:Literal>
                <br />
                <asp:TextBox ID="txtVideoSource" runat="server" Width="570px"></asp:TextBox>
            </td>
        </tr>
        <%if (!VideoId.Equals(Guid.Empty))
          { %>
        <tr>
            <td>
                Người tạo
            </td>
            <td>
                <asp:Label ID="lblCreatedBy" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Ngày tạo
            </td>
            <td>
                <asp:Label ID="lblCreatedDate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Người sửa
            </td>
            <td>
                <asp:Label ID="lblUpdatedBy" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Người sửa
            </td>
            <td>
                <asp:Label ID="lblUpdatedDate" runat="server"></asp:Label>
            </td>
        </tr>
        <%} %>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <asp:Button ID="btnUpdate" runat="server" Width="100px" Text="Thêm" CssClass="ui-widget-content ui-corner-all textfield"
                    OnClick="btnUpdate_Click" />
            </td>
        </tr>
    </table>
</div>
</div> 